//package cn.xspace.wnx.fragment;
//
//import android.os.Bundle;
//import android.view.LayoutInflater;
//import android.view.View;
//
//import com.xspace.android.xafcommon.adapter.ViewPageFragmentAdapter;
//import com.xspace.android.xafcommon.base.BaseViewPagerFragment;
//import cn.xspace.wnx.R;
//import cn.xspace.wnx.activity.GroupListActivity;
//import cn.xspace.wnx.activity.MsgForwardActivity;
//
//import cn.xspace.chatui.bean.MsgRecordEntity;
//
///**
// * Created by liuchen on 2016/11/1.
// */
//
//public class MyGroupFragment extends BaseViewPagerFragment {
//    protected static final String TAG = MyGroupFragment.class.getSimpleName();
//
//    @Override
//    protected void onSetupTabAdapter(ViewPageFragmentAdapter adapter) {
//        Bundle mBundle = getArguments();
//        MsgRecordEntity recordEntity = null;
//        if (mBundle != null) {
//            recordEntity = (MsgRecordEntity) mBundle.getSerializable(MsgForwardActivity.FORWARD_ENTITY);
//        }
//        String[] titles = getResources().getStringArray(R.array.group_type);
//        Bundle mBundle1 = new Bundle();
//        Bundle mBundle2 = new Bundle();
//        Bundle mBundle3 = new Bundle();
//        if (recordEntity != null) {
//            mBundle1.putSerializable(MsgForwardActivity.FORWARD_ENTITY, recordEntity);
//            mBundle2.putSerializable(MsgForwardActivity.FORWARD_ENTITY, recordEntity);
//            mBundle3.putSerializable(MsgForwardActivity.FORWARD_ENTITY, recordEntity);
//        }
//        mBundle1.putInt(GroupMineFragment.KEY_TYPE, GroupListActivity.GroupType.Organization.getNum());
//        adapter.addTab(titles[0], GroupListActivity.GroupType.Organization.toString(), GroupMineFragment.class, mBundle1);
//        mBundle2.putInt(GroupMineFragment.KEY_TYPE, GroupListActivity.GroupType.Professional.getNum());
//        adapter.addTab(titles[1], GroupListActivity.GroupType.Professional.toString(), GroupMineFragment.class, mBundle2);
//        mBundle3.putInt(GroupMineFragment.KEY_TYPE, GroupListActivity.GroupType.Normal.getNum());
//        adapter.addTab(titles[2], GroupListActivity.GroupType.Normal.toString(), GroupMineFragment.class, mBundle3);
//    }
//
//    @Override
//    public void onViewCreated(View view, Bundle savedInstanceState) {
//        super.onViewCreated(view, savedInstanceState);
//        mViewPager.setOffscreenPageLimit(2);
//    }
//
//    @Override
//    public View initView(LayoutInflater inflater) {
//        return null;
//    }
//
//    @Override
//    protected void initFindViewById(View view) {
//
//    }
//
//    @Override
//    public void initData() {
//
//    }
//}
